home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / comm / msged400.zip / src / vio.h < prev    next >
C/C++ Source or Header  |  1996-06-22  |  2KB  |  81 lines

  1. /*
  2.  *  VIO.H
  3.  *
  4.  *  Written by jim nutt and released to the public domain.
  5.  *
  6.  *  Prototypes for VIO.H.
  7.  */
  8.  
  9. #ifndef VIO_H_INCLUDED
  10. #define VIO_H_INCLUDED
  11.  
  12. /* initialization and termination functions */
  13.  
  14. unsigned short VIOopen(void);
  15. void VIOclose(void);
  16.  
  17. /* scrolling functions */
  18.  
  19. void VIOscrollright(int x1, int y1, int x2, int y2, int count);
  20. void VIOscrollleft(int x1, int y1, int x2, int y2, int count);
  21. void VIOscrollup(int x1, int y1, int x2, int y2, int count);
  22. void VIOscrolldown(int x1, int y1, int x2, int y2, int count);
  23.  
  24. /* screen clear */
  25.  
  26. void VIOclear(int x1, int y1, int x2, int y2);
  27.  
  28. /* write to screen */
  29.  
  30. void VIOputc(const char c);
  31. void VIOputs(const char *s);
  32. void VIOputr(int x, int y, int w, int h, unsigned short *b);
  33.  
  34. /* read from screen */
  35. unsigned short VIOgetca(const int x, const int y);
  36. void VIOgetra(int x1, int y1, int x2, int y2, unsigned short *b);
  37.  
  38. /* set colors */
  39.  
  40. void VIOsetfore(const int c);
  41. void VIOsetback(const int c);
  42.  
  43. /* get current color settings */
  44.  
  45. unsigned short VIOgetfore(void);
  46. unsigned short VIOgetback(void);
  47.  
  48. /* set the write cursor */
  49.  
  50. void VIOgotoxy(int x, int y);
  51.  
  52. /* update the screen and visible cursor */
  53.  
  54. void VIOupdate(void);
  55.  
  56. /* get the current write cursor position */
  57.  
  58. unsigned short VIOwherex(void);
  59. unsigned short VIOwherey(void);
  60.  
  61. /* get screen information */
  62.  
  63. unsigned short VIOsegment(void);
  64.  
  65. unsigned short VIOcolumns(void);
  66. unsigned short VIOrows(void);
  67. unsigned short VIOmode(void);
  68. unsigned short VIOheight(void);
  69.  
  70. /* set segment information */
  71.  
  72. void VIOsetSegment(unsigned int s);
  73. void VIOsetRows(int r);
  74. void VIOsetCols(int c);
  75.  
  76. /* get BIOS cursor location */
  77.  
  78. void VIOcursor(int *x, int *y, int *shape);
  79.  
  80. #endif
  81.